package com.czwj.dao;


import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.czwj.entities.Lettertext;
import com.czwj.entities.LettertextExample;

public interface LettertextMapper {
    long countByExample(LettertextExample example);

    int deleteByExample(LettertextExample example);

    int deleteByPrimaryKey(Integer textid);

    int insert(Lettertext record);

    int insertSelective(Lettertext record);

    List<Lettertext> selectByExampleWithBLOBs(LettertextExample example);

    List<Lettertext> selectByExample(LettertextExample example);

    Lettertext selectByPrimaryKey(Integer textid);

    int updateByExampleSelective(@Param("record") Lettertext record, @Param("example") LettertextExample example);

    int updateByExampleWithBLOBs(@Param("record") Lettertext record, @Param("example") LettertextExample example);

    int updateByExample(@Param("record") Lettertext record, @Param("example") LettertextExample example);

    int updateByPrimaryKeySelective(Lettertext record);

    int updateByPrimaryKeyWithBLOBs(Lettertext record);

    int updateByPrimaryKey(Lettertext record);
    
    List<Lettertext> selectLetterList(String recname);
    
    List<Lettertext> selectByState(String recname);

	/**
	* @Title: selectSendMsg
	* @Description: TODO
	* @param id
	* @return 参数 
	* @return List<Lettertext> 返回类型
	* @throws
	*/
	List<Lettertext> selectSendMsg(Integer id);
}